import type { ProColumns } from '@ant-design/pro-table';
export type columnsDataType = {};
const columnsData: ProColumns<columnsDataType>[] = [
  // 配置搜索框
  {
    title: '流程实例名称',
    dataIndex: 'processInstanceName',
    hideInTable: true,
  },
  {
    title: '流程实例ID',
    dataIndex: 'id',
    hideInTable: true,
  },
  // 表头
  {
    title: '名称',
    dataIndex: 'name',
    hideInSearch: true,
    fixed: 'left',
    width: 140,
  },
  {
    title: 'ID',
    dataIndex: 'id',
    hideInSearch: true,
    width: 200,
  },
  {
    title: '状态',
    dataIndex: 'isSuspended',
    hideInSearch: true,
    width: 120,
    valueEnum: {
      true: {
        text: '挂起',
        status: 'Error',
      },
      false: {
        text: '激活',
        status: 'Success',
      },
    },
  },
  {
    title: '流程定义名称',
    dataIndex: 'processDefinitionName',
    hideInSearch: true,
    width: 120,
  },
  {
    title: '描述',
    dataIndex: 'processDefinitionDescription',
    hideInSearch: true,
    width: 300,
  },
  {
    title: '创建时间',
    dataIndex: 'started',
    hideInSearch: true,
    width: 160,
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: 'right',
    hideInSearch: true,
    width: 130,
  },
];

export default columnsData;
